package demo1;

import java.util.Scanner;

public class StringBuilderDemo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入数字");
        String str = sc.next();
      //  StringBuilder sb = new StringBuilder(str);
      //  String str2 = sb.reverse().toString();
        String str2 = new StringBuilder(str).reverse().toString();
        if(str.equals(str2)) {
            System.out.println("true");
        }else{
            System.out.println("false");
        }
    }
}
